<?php

namespace Database\Seeders;

use App\Models\Language;
use Illuminate\Database\Seeder;

class LanguageSeeder extends Seeder
{
  public function run()
  {
    // Italian
    $firstLanguage = new Language();
    $firstLanguage->iso_639_1 = 'it';
    $firstLanguage->name = 'Italiano';
    $firstLanguage->save();
    // English
    $secondLanguage = new Language();
    $secondLanguage->iso_639_1 = 'en';
    $secondLanguage->name = 'Inglese';
    $secondLanguage->save();
  }
}
